<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .box {
            width: 100%;
            min-width: 500px;

        }

        .box::after {
            content: "";
            display: table;
            clear: both;
        }

        .item {
            color: #fff;
            padding: 50px;
            float: left;
            text-align: center;
        }

        .left2 {
            background: red;
            width: 200px;
        }

        .center1 {
            width: 100%;
            background: green;
        }

        .right3 {
            width: 200px;
            background: blue;
        }

        #container {
            padding-left: 200px;
            padding-right: 150px;
            overflow: auto;
        }

        #container p {
            float: left;
        }

        .center {
            width: 100%;
            background-color: lightcoral;
        }

        .left {
            width: 200px;
            position: relative;
            left: -200px;
            margin-left: -100%;
            background-color: lightcyan;
        }

        .right {
            width: 150px;
            margin-right: -150px;
            background-color: lightgreen;
        }

        .clearfix:after {
            content: "";
            display: table;
            clear: both;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="item center1">1</div>
        <div class="item left2">2</div>
        <div class="item right3">3</div>
    </div>
    <div id="container" class="clearfix">
        <p class="center">我是中间</p>
        <p class="left">我是左边</p>
        <p class="right">我是右边</p>
    </div>

    <button id="fangdou">防抖按钮</button>
    <button id="jieliu">节流按钮</button>
    <script>
        function a() {
            console.log("%c Line:104 🍺", "color:#465975", this);
        }
        let obj = {
            name: 'obj',
            fn: function () {
                console.log("%c Line:109 🥟", "color:#ea7e5c", this);
                a();
            }
        }
    </script>
    <script>
        function fn1() {

            function fn2() {
                console.log("%c Line:32 🧀 a", "color:#e41a6a", a);
                console.log("%c Line:34 🥥 b", "color:#ed9ec7", b);
            }
            var a = 1;
            let b = 2;
            return fn2;
        }
        var c = fn1();
        c();
        console.dir(c);
    </script>
    <script src="./index.js" type="module"></script>
</body>

</html>